//
//  FrindManage.h
//  QuanZiChat
//
//  Created by lanou3g on 15/11/25.
//  Copyright © 2015年 ZhongHongLin. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "User.h"

@interface FrindManage : NSObject

+(instancetype)defulManager;

//添加好友(将好友信息以Array的形式加到_User表中的friend字段下)
-(void)addFriendWithUsername:(NSString *)username Handle:(void(^)())handle;

//从数据库中获得好友(_Uer表中和friends字段有关联的用户)
-(void)getFriendFromUserWithHandle:(void(^)())handle;

//返回frindArray数组
-(NSMutableArray *)getBackFriend;

//从数据库中获取好友信息并添加到本地
-(void)StoreFriendMessageWithUser:(User *)user Handle:(void(^)())handle;

@end
